#ifndef _TIMERF_H
#define _TIMERF_H

#include "common_h.h"

#ifdef TIMER_DEBUG
#define  	timer_debug         lite_printf
#else 
#define   timer_debug(fmt,...) 	 
#endif

#define  TIMERNUM                80

typedef struct tmr_st {
	struct tmr_st    *tmr_next;     
	u32   holdtime;		         
	u32   optime;                
	void    (*tmrfunc)(void);          
}TIMER;


TIMER *timer_create(void (*timerfunc)(void));
void timer_start(TIMER *tmr,  u32 sec);
void timer_stop(TIMER *tmr);
u8 Timer_running(TIMER *tmr);
void timer_remove(TIMER *pRemTimer);
void timer_list_init(void);
#endif

